//
//  MyPlugin.m
//
//  Created by 严浩 on 15/3/11.
//
//

#import "MyPlugin.h"
#import <Cordova/CDVPluginResult.h>

@implementation MyPlugin

- (void)getMessage:(CDVInvokedUrlCommand*)command{
    CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"==="];
    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];

}

- (void)setMessage:(CDVInvokedUrlCommand*)command{
    NSString *message = nil;
    [[command.arguments objectAtIndex:0] getValue:&message];
    NSLog(@"message = %@", message);
}

@end
